import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: { name: 'intro' }
    },
    {
      path: '/intro',
      name: 'intro',
      component: (resolve) => require(['../examples/intro.vue'], resolve)
    },
    {
      path: '/installation',
      name: 'installation',
      component: (resolve) => require(['../examples/installation.vue'], resolve)
    },
    {
      path: '/change-log',
      name: 'change-log',
      component: (resolve) => require(['../examples/change-log.vue'], resolve)
    },
    {
      path: '/theme',
      name: 'theme',
      component: (resolve) => require(['../examples/theme.vue'], resolve)
    },
    {
      path: '/epButton',
      name: 'epButton',
      component: (resolve) => require(['../examples/epButton.vue'], resolve)
    },
    {
      path: '/epSelect',
      name: 'epSelect',
      component: (resolve) => require(['../examples/epSelect.vue'], resolve)
    },
    {
      path: '/epInput',
      name: 'epInput',
      component: (resolve) => require(['../examples/epInput.vue'], resolve)
    }
  ]
})
